home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Free Software Collection 8
/
FM Towns Free Software Collection 8.iso
/
t_os
/
otohime
/
src
/
iotfad.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-06-01
|
17KB
|
755 lines
#include <stdio.h>
#include <stdlib.h>
#include <winb.h>
#include <te.h>
#include <fntb.h>
#include <gui.h>
extern int fadeDialogId ;
extern int fadeOkBtnId ;
extern int fadeOkchk() ;
extern int fadePlayBtnId ;
extern int fadePlay() ;
extern int fadeUndoBtnId ;
extern int fadeUndo() ;
extern int fadeInfBtnId ;
extern int fadeInf() ;
extern int fadeCanBtnId ;
extern int fadeCanchk() ;
extern int fadeMesId[32] ;
extern int fadeSubDialogId ;
extern int fadeNumId[4] ;
#define ALIGN 4
#define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)
/* MMI_init 用データ */
/* ヘッダ */
MMIINIT initDataIOTFAD = { "MmiInit", 43, 0 } ;
/* fadeDialogId */
static MMIPACKET d001 = { &fadeDialogId,
NULL,
&MJ_DIALOGL40,
OFFSET(DIALOGL40),
MS_NONE
} ;
static DIALOGL40 d001d = { MS_BTLEFTL40 | MS_EVMOSONL40,
124, 76, 516, 404, 8, 4, 8,
MS_SRECTL40 | MS_UFRAMEL40 | MS_FRAMEL40,
NULL, 0, 0
} ;
/* fadeOkBtnId */
static MMIPACKET d002 = { &fadeOkBtnId,
&fadeDialogId,
&MJ_DBUTTONL40,
OFFSET(DBUTTONL40),
MS_NONE
} ;
static DBUTTONL40 d002d = { MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
144, 374, 205, 397,12, 4, 8,
MS_PANELL40 | MS_FRAMEL40,
fadeOkchk,
0x0000
} ;
/* fadePlayBtnId */
static MMIPACKET d003 = { &fadePlayBtnId,
&fadeDialogId,
&MJ_DBUTTONL40,
OFFSET(DBUTTONL40),
MS_NONE
} ;
static DBUTTONL40 d003d = { MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
214, 374, 275, 397, 7, 4, 8,
MS_PANELL40 | MS_FRAMEL40,
fadePlay,
0x0000
} ;
/* fadeUndoBtnId */
static MMIPACKET d004 = { &fadeUndoBtnId,
&fadeDialogId,
&MJ_DBUTTONL40,
OFFSET(DBUTTONL40),
MS_NONE
} ;
static DBUTTONL40 d004d = { MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
284, 374, 345, 397, 7, 4, 8,
MS_PANELL40 | MS_FRAMEL40,
fadeUndo,
0x0000
} ;
/* fadeInfBtnId */
static MMIPACKET d005 = { &fadeInfBtnId,
&fadeDialogId,
&MJ_DBUTTONL40,
OFFSET(DBUTTONL40),
MS_NONE
} ;
static DBUTTONL40 d005d = { MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
354, 374, 415, 397, 7, 4, 8,
MS_PANELL40 | MS_FRAMEL40,
fadeInf,
0x0000
} ;
/* fadeCanBtnId */
static MMIPACKET d006 = { &fadeCanBtnId,
&fadeDialogId,
&MJ_DBUTTONL40,
OFFSET(DBUTTONL40),
MS_NONE
} ;
static DBUTTONL40 d006d = { MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
436, 374, 497, 397,10, 4, 8,
MS_PANELL40 | MS_FRAMEL40,
fadeCanchk,
0x0000
} ;
/* fadeMesId[0] */
static MMIPACKET d007 = { &fadeMesId[0],
&fadeDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d007d = { MS_CENTERL40 | MS_DSPONLYL40,
153, 377, 196, 394, 8,15, 8,
MS_NONEL40,
"実 行",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* fadeMesId[1] */
static MMIPACKET d008 = { &fadeMesId[1],
&fadeDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d008d = { MS_CENTERL40 | MS_DSPONLYL40,
222, 377, 268, 394, 8,15, 8,
MS_NONEL40,
"再 生",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* fadeMesId[2] */
static MMIPACKET d009 = { &fadeMesId[2],
&fadeDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d009d = { MS_CENTERL40 | MS_DSPONLYL40,
290, 377, 341, 394, 8,15, 8,
MS_NONEL40,
"アンドゥ",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* fadeMesId[3] */
static MMIPACKET d010 = { &fadeMesId[3],
&fadeDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d010d = { MS_CENTERL40 | MS_DSPONLYL40,
362, 377, 408, 394, 8,15, 8,
MS_NONEL40,
"情 報",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* fadeMesId[4] */
static MMIPACKET d011 = { &fadeMesId[4],
&fadeDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d011d = { MS_CENTERL40 | MS_DSPONLYL40,
445, 377, 489, 394, 8,15, 8,
MS_NONEL40,
"取 消",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* fadeMesId[5] */
static MMIPACKET d012 = { &fadeMesId[5],
&fadeDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d012d = { MS_LEFTL40 | MS_DSPONLYL40,
151, 79, 352, 98, 8,15, 8,
MS_NONEL40,
"フェードイン & フェードアウト",
1, 12, 12,
MS_BOLDL40,
0, 0
} ;
/* fadeSubDialogId */
static MMIPACKET d013 = { &fadeSubDialogId,
&fadeDialogId,
&MJ_DIALOGL40,
OFFSET(DIALOGL40),
MS_NONE
} ;
static DIALOGL40 d013d = { MS_BTLEFTL40 | MS_EVMOSONL40 | MS_FIXEDL40,
144, 102, 497, 369, 8, 4, 8,
MS_DFRAMEL40 | MS_FRAMEL40,
NULL, 0, 0
} ;
/* fadeNumId[0] */
static MMIPACKET d014 = { &fadeNumId[0],
&fadeSubDialogId,
&MJ_NUMBOXL40,
OFFSET(NUMBOXL40),
MS_NONE
} ;
static NUMBOXL40 d014d = { MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_RIGHTL40,
325, 118, 398, 141, 8, 4, 8,
MS_PANELL40 | MS_DFRAMEL40 | MS_FRAMEL40,
0,
1, 12, 12,
MS_NONEL40,
0, 0,
10, 0,9999, 1, 2,
263, 264
} ;
/* fadeNumId[1] */
static MMIPACKET d015 = { &fadeNumId[1],
&fadeSubDialogId,
&MJ_NUMBOXL40,
OFFSET(NUMBOXL40),
MS_NONE
} ;
static NUMBOXL40 d015d = { MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_RIGHTL40,
325, 154, 398, 177, 8, 4, 8,
MS_PANELL40 | MS_DFRAMEL40 | MS_FRAMEL40,
0,
1, 12, 12,
MS_NONEL40,
0, 0,
50, 0,9999, 1, 2,
263, 264
} ;
/* fadeNumId[2] */
static MMIPACKET d016 = { &fadeNumId[2],
&fadeSubDialogId,
&MJ_NUMBOXL40,
OFFSET(NUMBOXL40),
MS_NONE
} ;
static NUMBOXL40 d016d = { MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_RIGHTL40,
325, 190, 398, 213, 8, 4, 8,
MS_PANELL40 | MS_DFRAMEL40 | MS_FRAMEL40,
0,
1, 12, 12,
MS_NONEL40,
0, 0,
50, 0,9999, 1, 2,
263, 264
} ;
/* fadeNumId[3] */
static MMIPACKET d017 = { &fadeNumId[3],
&fadeSubDialogId,
&MJ_NUMBOXL40,
OFFSET(NUMBOXL40),
MS_NONE
} ;
static NUMBOXL40 d017d = { MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_RIGHTL40,
325, 226, 398, 249, 8, 4, 8,
MS_PANELL40 | MS_DFRAMEL40 | MS_FRAMEL40,
0,
1, 12, 12,
MS_NONEL40,
0, 0,
10, 0,9999, 1, 2,
263, 264
} ;
/* fadeMesId[6] */
static MMIPACKET d018 = { &fadeMesId[6],
&fadeSubDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d018d = { MS_LEFTL40 | MS_DSPONLYL40,
240, 121, 319, 138, 0,15, 8,
MS_NONEL40,
"時間1(秒)",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* fadeMesId[7] */
static MMIPACKET d019 = { &fadeMesId[7],
&fadeSubDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d019d = { MS_LEFTL40 | MS_DSPONLYL40,
240, 157, 319, 174, 0,15, 8,
MS_NONEL40,
"時間2(秒)",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* fadeMesId[8] */
static MMIPACKET d020 = { &fadeMesId[8],
&fadeSubDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d020d = { MS_LEFTL40 | MS_DSPONLYL40,
240, 193, 319, 210, 0,15, 8,
MS_NONEL40,
"時間3(秒)",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* fadeMesId[9] */
static MMIPACKET d021 = { &fadeMesId[9],
&fadeSubDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d021d = { MS_LEFTL40 | MS_DSPONLYL40,
240, 229, 319, 246, 0,15, 8,
MS_NONEL40,
"時間4(秒)",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* fadeMesId[10] */
static MMIPACKET d022 = { &fadeMesId[10],
&fadeSubDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d022d = { MS_LEFTL40 | MS_DSPONLYL40,
212, 272, 288, 289, 0,15, 8,
MS_NONEL40,
"フェードイン",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* fadeMesId[11] */
static MMIPACKET d023 = { &fadeMesId[11],
&fadeSubDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d023d = { MS_LEFTL40 | MS_DSPONLYL40,
351, 272, 438, 289, 0,15, 8,
MS_NONEL40,
"フェードアウト",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* fadeMesId[12] */
static MMIPACKET d024 = { &fadeMesId[12],
&fadeSubDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d024d = { MS_LEFTL40 | MS_DSPONLYL40,
272, 280, 362, 306, 0,15, 8,
MS_NONEL40,
"-",
1, 105, 12,
MS_NONEL40,
0, 0
} ;
/* fadeMesId[14] */
static MMIPACKET d025 = { &fadeMesId[14],
&fadeSubDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d025d = { MS_LEFTL40 | MS_DSPONLYL40,
402, 311, 426, 328, 0,15, 8,
MS_NONEL40,
"\",
1, 24, 12,
MS_NONEL40,
0, 0
} ;
/* fadeMesId[15] */
static MMIPACKET d026 = { &fadeMesId[15],
&fadeSubDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d026d = { MS_LEFTL40 | MS_DSPONLYL40,
278, 291, 301, 324, 0,15, 7,
MS_NONEL40,
"|",
1, 12, 35,
MS_NONEL40,
1, 0
} ;
/* fadeMesId[16] */
static MMIPACKET d027 = { &fadeMesId[16],
&fadeSubDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d027d = { MS_LEFTL40 | MS_DSPONLYL40,
356, 291, 379, 324, 0,15, 7,
MS_NONEL40,
"|",
1, 12, 35,
MS_NONEL40,
1, 0
} ;
/* fadeMesId[17] */
static MMIPACKET d028 = { &fadeMesId[17],
&fadeSubDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d028d = { MS_LEFTL40 | MS_DSPONLYL40,
163, 313, 224, 339, 0,15, 8,
MS_NONEL40,
"-",
1, 64, 12,
MS_NONEL40,
0, 0
} ;
/* fadeMesId[18] */
static MMIPACKET d029 = { &fadeMesId[18],
&fadeSubDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d029d = { MS_LEFTL40 | MS_DSPONLYL40,
419, 313, 480, 339, 0,15, 8,
MS_NONEL40,
"-",
1, 64, 12,
MS_NONEL40,
0, 0
} ;
/* fadeMesId[19] */
static MMIPACKET d030 = { &fadeMesId[19],
&fadeSubDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d030d = { MS_LEFTL40 | MS_DSPONLYL40,
177, 313, 459, 339, 0,15, 8,
MS_NONEL40,
"-",
1, 320, 16,
MS_NONEL40,
0, 0
} ;
/* fadeMesId[20] */
static MMIPACKET d031 = { &fadeMesId[20],
&fadeSubDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d031d = { MS_LEFTL40 | MS_DSPONLYL40,
175, 332, 211, 349, 0,15, 8,
MS_NONEL40,
"時間1",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* fadeMesId[21] */
static MMIPACKET d032 = { &fadeMesId[21],
&fadeSubDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d032d = { MS_LEFTL40 | MS_DSPONLYL40,
232, 332, 268, 349, 0,15, 8,
MS_NONEL40,
"時間2",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* fadeMesId[22] */
static MMIPACKET d033 = { &fadeMesId[22],
&fadeSubDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d033d = { MS_LEFTL40 | MS_DSPONLYL40,
374, 332, 410, 349, 0,15, 8,
MS_NONEL40,
"時間3",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* fadeMesId[23] */
static MMIPACKET d034 = { &fadeMesId[23],
&fadeSubDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d034d = { MS_LEFTL40 | MS_DSPONLYL40,
432, 332, 468, 349, 0,15, 8,
MS_NONEL40,
"時間4",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* fadeMesId[24] */
static MMIPACKET d035 = { &fadeMesId[24],
&fadeSubDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d035d = { MS_LEFTL40 | MS_DSPONLYL40,
237, 300, 264, 317, 0,15, 8,
MS_NONEL40,
"/",
1, 24, 12,
MS_NONEL40,
0, 0
} ;
/* fadeMesId[25] */
static MMIPACKET d036 = { &fadeMesId[25],
&fadeSubDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d036d = { MS_LEFTL40 | MS_DSPONLYL40,
215, 311, 240, 328, 0,15, 8,
MS_NONEL40,
"/",
1, 24, 12,
MS_NONEL40,
0, 0
} ;
/* fadeMesId[26] */
static MMIPACKET d037 = { &fadeMesId[26],
&fadeSubDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d037d = { MS_LEFTL40 | MS_DSPONLYL40,
259, 289, 286, 306, 0,15, 8,
MS_NONEL40,
"/",
1, 24, 12,
MS_NONEL40,
0, 0
} ;
/* fadeMesId[13] */
static MMIPACKET d038 = { &fadeMesId[13],
&fadeSubDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d038d = { MS_LEFTL40 | MS_DSPONLYL40,
380, 300, 404, 317, 0,15, 8,
MS_NONEL40,
"\",
1, 24, 12,
MS_NONEL40,
0, 0
} ;
/* fadeMesId[27] */
static MMIPACKET d039 = { &fadeMesId[27],
&fadeSubDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d039d = { MS_LEFTL40 | MS_DSPONLYL40,
358, 289, 382, 306, 0,15, 8,
MS_NONEL40,
"\",
1, 24, 12,
MS_NONEL40,
0, 0
} ;
/* fadeMesId[28] */
static MMIPACKET d040 = { &fadeMesId[28],
&fadeSubDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d040d = { MS_LEFTL40 | MS_DSPONLYL40,
166, 303, 196, 325, 0,15, 8,
MS_NONEL40,
"|",
1, 12, 24,
MS_NONEL40,
0, 0
} ;
/* fadeMesId[29] */
static MMIPACKET d041 = { &fadeMesId[29],
&fadeSubDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d041d = { MS_LEFTL40 | MS_DSPONLYL40,
155, 286, 188, 303, 0,15, 8,
MS_NONEL40,
"start",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* fadeMesId[30] */
static MMIPACKET d042 = { &fadeMesId[30],
&fadeSubDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d042d = { MS_LEFTL40 | MS_DSPONLYL40,
469, 303, 490, 325, 0,15, 8,
MS_NONEL40,
"|",
1, 12, 24,
MS_NONEL40,
0, 0
} ;
/* fadeMesId[31] */
static MMIPACKET d043 = { &fadeMesId[31],
&fadeSubDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d043d = { MS_LEFTL40 | MS_DSPONLYL40,
462, 286, 485, 303, 0,15, 8,
MS_NONEL40,
"end",
1, 12, 12,
MS_NONEL40,
0, 0
} ;